Paned

Paned is a view that can hold two children. The two children can either be View or Element.

class Aduct.Views.Paned.Paned(**kwargs)

Makes a paned based on given properties. Its default name is aduct-paned

Parameters:**kwargs – The keyword arguments to be passed to Gtk.Paned from which Paned is made.
add_child(child, position=0)

Adds the child to paned.

When position is 1 or 2, child is added at panel 1 or 2 of self respectively. When it is 0, child is added to the first available panel. When it is neither of specified values, nothing is done.

Parameters:
  • child (View or Element) – The child to be added to self.
  • position (int) – The panel at which the child has to be added. position can be 0 or 1 or 2, with default value being 0.
Raises:

ValueError – Raised when self already has a child.

get_props()

Gets the interface properties.

Returns:A dictionary with interface properties.
Return type:dict
remove_child(child)

Removes the given child from self.

Parameters:child (View or Element) – The child which has to be removed from self.
Raises:ValueError – Raised when child is not present in self.
replace_child(old_child, new_child)

Replaces the existing child with a new child.

Parameters:
  • old_child (View or Element) – The child present in self which has to be replaced.
  • new_child (View or Element) – The child that will replace the given existing child of self.
Raises:

ValueError – Raised when old_child is not in self.

set_from_props(props)

Sets the interface from given properties.

Parameters:props (dict) – The dictionary containig properties of interface.
type

Used by autodoc_mock_imports.